<!--
 * @Author: LAB
 * @Date: 2021-04-15 11:59:32
 * @Description: 登录
 * @FilePath: \Clinic-Web\clientapp\src\views\login\index.vue
-->
<template>
  <Phone v-if="loginType=='phone'"/>
  <Account v-else/>
</template>

<script>
import Account from "./account.vue"
import Phone from "./phone.vue"
import { Options, Vue } from "vue-class-component";
@Options({
    components: {
      Account,
      Phone
    },
    watch:{
      "$route.query"(){
        this.loginType = this.$route.query.type||""
      }
    }
  })
export default class login extends Vue {
  loginType="account";
  mounted(){
    this.loginType = this.$route.query.type||""
  }
}
</script>

<style lang="scss" scoped>

</style>